import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JSlider;
import java.awt.FlowLayout;
import java.awt.Choice;
import java.awt.Button;
import javax.swing.JSeparator;

import javax.swing.JTable;
import javax.swing.JScrollPane;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;



public class Panel {

	private JFrame frmProva;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	
	private JPanel panelPc;
	private JPanel panelPort;
	private JPanel panelQueue; 
	private JPanel panelTask;
	private JPanel panelEvent;
	private JPanel panelSent;
	
	private JLabel lblNewLabel_7;
	private JLabel lblNewLabel_8;
	private JLabel lblNewLabel_9;
	private JLabel lblNewLabel_10;
	private JLabel lblNewLabel_11;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;
	private JTextField textField_10;
	private JSlider slider;
	private Choice choice;
	private Button button;
	private JLabel lblNewLabel_12;
	private JLabel lblNewLabel_13;
	private JLabel lblNewLabel_14;
	private Choice choice_1;
	private Choice choice_2;
	private Choice choice_3;
	private JLabel lblFilter;
	private JSeparator separator;
	private JTextField textField_11;
	private JTextField textField_12;
	private JTextField textField_13;
	private JLabel lblNewLabel_15;
	private JLabel lblNewLabel_16;
	private JSeparator separator_1;
	private JLabel lblNewLabel_17;
	private JLabel lblNewLabel_18;
	private JLabel lblNewLabel_19;
	private JSeparator separator_2;
	private JScrollPane scrollPane;
	private JTable table;

	/**
	 * Launch the application.
	 
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Panel window = new Panel();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}*/

	/**
	 * Create the application.
	 */
	public Panel() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmProva = new JFrame();
		frmProva.setTitle("PROVA");
		frmProva.setBounds(100, 100, 600, 500);
		frmProva.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmProva.getContentPane().setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		panelTask = new JPanel();
		frmProva.getContentPane().add(panelTask);
		GridBagLayout gbl_panelTask = new GridBagLayout();
		gbl_panelTask.columnWidths = new int[]{124, 50, 68, 24, 104, 0};
		gbl_panelTask.rowHeights = new int[]{20, 2, 20, 20, 20, 22, 0};
		gbl_panelTask.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panelTask.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panelTask.setLayout(gbl_panelTask);
		
		choice = new Choice();
		choice.addItem("Select Task");
		choice.addItem("Task 1");
		choice.addItem("Task 2");
		choice.addItem("Task 3");
		choice.addItem("Task 4");
		GridBagConstraints gbc_choice = new GridBagConstraints();
		gbc_choice.anchor = GridBagConstraints.SOUTH;
		gbc_choice.fill = GridBagConstraints.HORIZONTAL;
		gbc_choice.insets = new Insets(0, 0, 5, 5);
		gbc_choice.gridx = 0;
		gbc_choice.gridy = 0;
		panelTask.add(choice, gbc_choice);
		
			
			lblFilter = new JLabel("Filter");
			GridBagConstraints gbc_lblFilter = new GridBagConstraints();
			gbc_lblFilter.anchor = GridBagConstraints.WEST;
			gbc_lblFilter.insets = new Insets(0, 0, 5, 5);
			gbc_lblFilter.gridx = 3;
			gbc_lblFilter.gridy = 0;
			panelTask.add(lblFilter, gbc_lblFilter);
		
		separator = new JSeparator();
		GridBagConstraints gbc_separator = new GridBagConstraints();
		gbc_separator.anchor = GridBagConstraints.NORTH;
		gbc_separator.fill = GridBagConstraints.HORIZONTAL;
		gbc_separator.insets = new Insets(0, 0, 5, 0);
		gbc_separator.gridwidth = 3;
		gbc_separator.gridx = 2;
		gbc_separator.gridy = 1;
		panelTask.add(separator, gbc_separator);
		
		lblNewLabel_12 = new JLabel("CPU");
		GridBagConstraints gbc_lblNewLabel_12 = new GridBagConstraints();
		gbc_lblNewLabel_12.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_12.gridx = 2;
		gbc_lblNewLabel_12.gridy = 2;
		panelTask.add(lblNewLabel_12, gbc_lblNewLabel_12);
		
		choice_3 = new Choice();
		choice_3.addItem("Anything");
		choice_3.addItem("1 core");
		choice_3.addItem("2 core");
		choice_3.addItem("4 core");
		choice_3.addItem("More");
		
		GridBagConstraints gbc_choice_3 = new GridBagConstraints();
		gbc_choice_3.anchor = GridBagConstraints.SOUTH;
		gbc_choice_3.fill = GridBagConstraints.HORIZONTAL;
		gbc_choice_3.insets = new Insets(0, 0, 5, 0);
		gbc_choice_3.gridx = 4;
		gbc_choice_3.gridy = 2;
		panelTask.add(choice_3, gbc_choice_3);
		
		lblNewLabel_13 = new JLabel("Frequency");
		GridBagConstraints gbc_lblNewLabel_13 = new GridBagConstraints();
		gbc_lblNewLabel_13.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_13.gridx = 2;
		gbc_lblNewLabel_13.gridy = 3;
		panelTask.add(lblNewLabel_13, gbc_lblNewLabel_13);
			
			choice_1 = new Choice();
			choice_1.addItem("Anything");
			choice_1.addItem(" < 1 GHz");
			choice_1.addItem("1 GHz - 2GHz");
			choice_1.addItem(" > 2 GHz");
			GridBagConstraints gbc_choice_1 = new GridBagConstraints();
			gbc_choice_1.anchor = GridBagConstraints.SOUTH;
			gbc_choice_1.fill = GridBagConstraints.HORIZONTAL;
			gbc_choice_1.insets = new Insets(0, 0, 5, 0);
			gbc_choice_1.gridx = 4;
			gbc_choice_1.gridy = 3;
			panelTask.add(choice_1, gbc_choice_1);
			
			choice_2 = new Choice();
			choice_2.addItem("Anything");
			choice_2.addItem("512 MB");
			choice_2.addItem("1 GB");
			choice_2.addItem("2 GB");
			choice_2.addItem("More");
			
			lblNewLabel_14 = new JLabel("Memory");
			GridBagConstraints gbc_lblNewLabel_14 = new GridBagConstraints();
			gbc_lblNewLabel_14.insets = new Insets(0, 0, 5, 5);
			gbc_lblNewLabel_14.gridx = 2;
			gbc_lblNewLabel_14.gridy = 4;
			panelTask.add(lblNewLabel_14, gbc_lblNewLabel_14);
			GridBagConstraints gbc_choice_2 = new GridBagConstraints();
			gbc_choice_2.anchor = GridBagConstraints.SOUTH;
			gbc_choice_2.fill = GridBagConstraints.HORIZONTAL;
			gbc_choice_2.insets = new Insets(0, 0, 5, 0);
			gbc_choice_2.gridx = 4;
			gbc_choice_2.gridy = 4;
			panelTask.add(choice_2, gbc_choice_2);
			
			button = new Button("Send");
			GridBagConstraints gbc_button = new GridBagConstraints();
			gbc_button.anchor = GridBagConstraints.NORTH;
			gbc_button.fill = GridBagConstraints.HORIZONTAL;
			gbc_button.insets = new Insets(0, 0, 0, 5);
			gbc_button.gridx = 0;
			gbc_button.gridy = 5;
			panelTask.add(button, gbc_button);
		
		panelEvent = new JPanel();
		frmProva.getContentPane().add(panelEvent);
		GridBagLayout gbl_panelEvent = new GridBagLayout();
		gbl_panelEvent.columnWidths = new int[]{76, 105, 29, 101, 40, 31, 96, 0};
		gbl_panelEvent.rowHeights = new int[]{30, 36, 2, 14, 2, 294, 0};
		gbl_panelEvent.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panelEvent.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panelEvent.setLayout(gbl_panelEvent);
		
		lblNewLabel_7 = new JLabel("Element :");
		GridBagConstraints gbc_lblNewLabel_7_1 = new GridBagConstraints();
		gbc_lblNewLabel_7_1.anchor = GridBagConstraints.EAST;
		gbc_lblNewLabel_7_1.fill = GridBagConstraints.VERTICAL;
		gbc_lblNewLabel_7_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_7_1.gridx = 0;
		gbc_lblNewLabel_7_1.gridy = 0;
		panelEvent.add(lblNewLabel_7, gbc_lblNewLabel_7_1);
		
		textField_11 = new JTextField();
		GridBagConstraints gbc_textField_11 = new GridBagConstraints();
		gbc_textField_11.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_11.insets = new Insets(0, 0, 5, 5);
		gbc_textField_11.gridx = 1;
		gbc_textField_11.gridy = 0;
		panelEvent.add(textField_11, gbc_textField_11);
		textField_11.setColumns(10);
		
		lblNewLabel_15 = new JLabel("Free :");
		GridBagConstraints gbc_lblNewLabel_15 = new GridBagConstraints();
		gbc_lblNewLabel_15.anchor = GridBagConstraints.EAST;
		gbc_lblNewLabel_15.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_15.gridx = 2;
		gbc_lblNewLabel_15.gridy = 0;
		panelEvent.add(lblNewLabel_15, gbc_lblNewLabel_15);
		
		textField_12 = new JTextField();
		GridBagConstraints gbc_textField_12 = new GridBagConstraints();
		gbc_textField_12.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_12.insets = new Insets(0, 0, 5, 5);
		gbc_textField_12.gridx = 3;
		gbc_textField_12.gridy = 0;
		panelEvent.add(textField_12, gbc_textField_12);
		textField_12.setColumns(10);
		
		lblNewLabel_16 = new JLabel("Total :");
		GridBagConstraints gbc_lblNewLabel_16 = new GridBagConstraints();
		gbc_lblNewLabel_16.anchor = GridBagConstraints.EAST;
		gbc_lblNewLabel_16.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_16.gridx = 5;
		gbc_lblNewLabel_16.gridy = 0;
		panelEvent.add(lblNewLabel_16, gbc_lblNewLabel_16);
		
		textField_13 = new JTextField();
		GridBagConstraints gbc_textField_13 = new GridBagConstraints();
		gbc_textField_13.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_13.insets = new Insets(0, 0, 5, 0);
		gbc_textField_13.gridx = 6;
		gbc_textField_13.gridy = 0;
		panelEvent.add(textField_13, gbc_textField_13);
		textField_13.setColumns(10);
		
		separator_2 = new JSeparator();
		GridBagConstraints gbc_separator_2_1 = new GridBagConstraints();
		gbc_separator_2_1.anchor = GridBagConstraints.NORTH;
		gbc_separator_2_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_separator_2_1.insets = new Insets(0, 0, 5, 0);
		gbc_separator_2_1.gridwidth = 7;
		gbc_separator_2_1.gridx = 0;
		gbc_separator_2_1.gridy = 2;
		panelEvent.add(separator_2, gbc_separator_2_1);
		
		lblNewLabel_17 = new JLabel("TASK");
		GridBagConstraints gbc_lblNewLabel_17_1 = new GridBagConstraints();
		gbc_lblNewLabel_17_1.anchor = GridBagConstraints.NORTH;
		gbc_lblNewLabel_17_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_17_1.gridx = 1;
		gbc_lblNewLabel_17_1.gridy = 3;
		panelEvent.add(lblNewLabel_17, gbc_lblNewLabel_17_1);
		
		lblNewLabel_18 = new JLabel("SENDER");
		GridBagConstraints gbc_lblNewLabel_18_1 = new GridBagConstraints();
		gbc_lblNewLabel_18_1.anchor = GridBagConstraints.NORTH;
		gbc_lblNewLabel_18_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_18_1.gridx = 3;
		gbc_lblNewLabel_18_1.gridy = 3;
		panelEvent.add(lblNewLabel_18, gbc_lblNewLabel_18_1);
		
		lblNewLabel_19 = new JLabel("PRIORITY");
		GridBagConstraints gbc_lblNewLabel_19_1 = new GridBagConstraints();
		gbc_lblNewLabel_19_1.anchor = GridBagConstraints.NORTH;
		gbc_lblNewLabel_19_1.insets = new Insets(0, 0, 5, 0);
		gbc_lblNewLabel_19_1.gridwidth = 2;
		gbc_lblNewLabel_19_1.gridx = 5;
		gbc_lblNewLabel_19_1.gridy = 3;
		panelEvent.add(lblNewLabel_19, gbc_lblNewLabel_19_1);
		
		separator_1 = new JSeparator();
		GridBagConstraints gbc_separator_1_1 = new GridBagConstraints();
		gbc_separator_1_1.anchor = GridBagConstraints.NORTH;
		gbc_separator_1_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_separator_1_1.insets = new Insets(0, 0, 5, 0);
		gbc_separator_1_1.gridwidth = 7;
		gbc_separator_1_1.gridx = 0;
		gbc_separator_1_1.gridy = 4;
		panelEvent.add(separator_1, gbc_separator_1_1);
		
		scrollPane = new JScrollPane();
		GridBagConstraints gbc_scrollPane_1 = new GridBagConstraints();
		gbc_scrollPane_1.fill = GridBagConstraints.BOTH;
		gbc_scrollPane_1.gridwidth = 7;
		gbc_scrollPane_1.gridx = 0;
		gbc_scrollPane_1.gridy = 5;
		panelEvent.add(scrollPane, gbc_scrollPane_1);
		
		table = new JTable();
		scrollPane.setViewportView(table);
		
		panelSent = new JPanel();
		frmProva.getContentPane().add(panelSent);
		GridBagLayout gbl_panelSent = new GridBagLayout();
		gbl_panelSent.columnWidths = new int[]{104, 142, 39, 127, 108, 0};
		gbl_panelSent.rowHeights = new int[]{76, 2, 14, 2, 294, 0};
		gbl_panelSent.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panelSent.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panelSent.setLayout(gbl_panelSent);
		
		separator_2 = new JSeparator();

		gbc_separator_2_1.anchor = GridBagConstraints.NORTH;
		gbc_separator_2_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_separator_2_1.insets = new Insets(0, 0, 5, 0);
		gbc_separator_2_1.gridwidth = 5;
		gbc_separator_2_1.gridx = 0;
		gbc_separator_2_1.gridy = 1;
		panelSent.add(separator_2, gbc_separator_2_1);
		
		lblNewLabel_17 = new JLabel("TASK");

		gbc_lblNewLabel_17_1.anchor = GridBagConstraints.NORTH;
		gbc_lblNewLabel_17_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_17_1.gridx = 0;
		gbc_lblNewLabel_17_1.gridy = 2;
		panelSent.add(lblNewLabel_17, gbc_lblNewLabel_17_1);
		
		lblNewLabel_18 = new JLabel("SENDER");

		gbc_lblNewLabel_18_1.anchor = GridBagConstraints.NORTH;
		gbc_lblNewLabel_18_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_18_1.gridx = 2;
		gbc_lblNewLabel_18_1.gridy = 2;
		panelSent.add(lblNewLabel_18, gbc_lblNewLabel_18_1);
		
		lblNewLabel_19 = new JLabel("PRIORITY");

		gbc_lblNewLabel_19_1.anchor = GridBagConstraints.NORTH;
		gbc_lblNewLabel_19_1.insets = new Insets(0, 0, 5, 0);
		gbc_lblNewLabel_19_1.gridx = 4;
		gbc_lblNewLabel_19_1.gridy = 2;
		panelSent.add(lblNewLabel_19, gbc_lblNewLabel_19_1);
		
		separator_1 = new JSeparator();

		gbc_separator_1_1.anchor = GridBagConstraints.NORTH;
		gbc_separator_1_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_separator_1_1.insets = new Insets(0, 0, 5, 0);
		gbc_separator_1_1.gridwidth = 5;
		gbc_separator_1_1.gridx = 0;
		gbc_separator_1_1.gridy = 3;
		panelSent.add(separator_1, gbc_separator_1_1);
		
		scrollPane = new JScrollPane();

		gbc_scrollPane_1.fill = GridBagConstraints.BOTH;
		gbc_scrollPane_1.gridwidth = 5;
		gbc_scrollPane_1.gridx = 0;
		gbc_scrollPane_1.gridy = 4;
		panelSent.add(scrollPane, gbc_scrollPane_1);
		
		table = new JTable();
		scrollPane.setViewportView(table);
		
		panelQueue = new JPanel();
		frmProva.getContentPane().add(panelQueue);
		GridBagLayout gbl_panelQueue = new GridBagLayout();
		gbl_panelQueue.columnWidths = new int[]{69, 111, 137, 0};
		gbl_panelQueue.rowHeights = new int[]{23, 21, 21, 21, 20, 0};
		gbl_panelQueue.columnWeights = new double[]{0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panelQueue.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panelQueue.setLayout(gbl_panelQueue);
		
		lblNewLabel_7 = new JLabel("isubmission");

		gbc_lblNewLabel_7_1.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_7_1.fill = GridBagConstraints.VERTICAL;
		gbc_lblNewLabel_7_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_7_1.gridx = 0;
		gbc_lblNewLabel_7_1.gridy = 0;
		panelQueue.add(lblNewLabel_7, gbc_lblNewLabel_7_1);
		
		slider = new JSlider();
		slider.setToolTipText("");
		GridBagConstraints gbc_slider = new GridBagConstraints();
		gbc_slider.anchor = GridBagConstraints.NORTH;
		gbc_slider.fill = GridBagConstraints.HORIZONTAL;
		gbc_slider.insets = new Insets(0, 0, 5, 0);
		gbc_slider.gridx = 2;
		gbc_slider.gridy = 0;
		panelQueue.add(slider, gbc_slider);
		
		lblNewLabel_8 = new JLabel("isize");
		GridBagConstraints gbc_lblNewLabel_8 = new GridBagConstraints();
		gbc_lblNewLabel_8.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_8.fill = GridBagConstraints.VERTICAL;
		gbc_lblNewLabel_8.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_8.gridx = 0;
		gbc_lblNewLabel_8.gridy = 1;
		panelQueue.add(lblNewLabel_8, gbc_lblNewLabel_8);
		
		textField_7 = new JTextField();
		GridBagConstraints gbc_textField_7 = new GridBagConstraints();
		gbc_textField_7.fill = GridBagConstraints.BOTH;
		gbc_textField_7.insets = new Insets(0, 0, 5, 0);
		gbc_textField_7.gridx = 2;
		gbc_textField_7.gridy = 1;
		panelQueue.add(textField_7, gbc_textField_7);
		textField_7.setColumns(10);
		
		lblNewLabel_9 = new JLabel("esize");
		GridBagConstraints gbc_lblNewLabel_9 = new GridBagConstraints();
		gbc_lblNewLabel_9.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_9.fill = GridBagConstraints.VERTICAL;
		gbc_lblNewLabel_9.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_9.gridx = 0;
		gbc_lblNewLabel_9.gridy = 2;
		panelQueue.add(lblNewLabel_9, gbc_lblNewLabel_9);
		
		textField_8 = new JTextField();
		textField_8.setColumns(10);
		GridBagConstraints gbc_textField_8 = new GridBagConstraints();
		gbc_textField_8.fill = GridBagConstraints.BOTH;
		gbc_textField_8.insets = new Insets(0, 0, 5, 0);
		gbc_textField_8.gridx = 2;
		gbc_textField_8.gridy = 2;
		panelQueue.add(textField_8, gbc_textField_8);
		
		lblNewLabel_10 = new JLabel("imax_threads");
		GridBagConstraints gbc_lblNewLabel_10 = new GridBagConstraints();
		gbc_lblNewLabel_10.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_10.fill = GridBagConstraints.VERTICAL;
		gbc_lblNewLabel_10.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_10.gridx = 0;
		gbc_lblNewLabel_10.gridy = 3;
		panelQueue.add(lblNewLabel_10, gbc_lblNewLabel_10);
		
		textField_9 = new JTextField();
		textField_9.setColumns(10);
		GridBagConstraints gbc_textField_9 = new GridBagConstraints();
		gbc_textField_9.fill = GridBagConstraints.BOTH;
		gbc_textField_9.insets = new Insets(0, 0, 5, 0);
		gbc_textField_9.gridx = 2;
		gbc_textField_9.gridy = 3;
		panelQueue.add(textField_9, gbc_textField_9);
		
		lblNewLabel_11 = new JLabel("emax_threads");
		GridBagConstraints gbc_lblNewLabel_11 = new GridBagConstraints();
		gbc_lblNewLabel_11.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_11.fill = GridBagConstraints.VERTICAL;
		gbc_lblNewLabel_11.insets = new Insets(0, 0, 0, 5);
		gbc_lblNewLabel_11.gridx = 0;
		gbc_lblNewLabel_11.gridy = 4;
		panelQueue.add(lblNewLabel_11, gbc_lblNewLabel_11);
		
		textField_10 = new JTextField();
		textField_10.setColumns(10);
		GridBagConstraints gbc_textField_10 = new GridBagConstraints();
		gbc_textField_10.anchor = GridBagConstraints.NORTH;
		gbc_textField_10.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_10.gridx = 2;
		gbc_textField_10.gridy = 4;
		panelQueue.add(textField_10, gbc_textField_10);
		
		panelPc = new JPanel();
		frmProva.getContentPane().add(panelPc);
		GridBagLayout gbl_panelPc = new GridBagLayout();
		gbl_panelPc.columnWidths = new int[]{51, 96, 113, 0};
		gbl_panelPc.rowHeights = new int[]{35, 20, 35, 20, 35, 20, 0};
		gbl_panelPc.columnWeights = new double[]{0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panelPc.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panelPc.setLayout(gbl_panelPc);
		
		JLabel lblNewLabel = new JLabel("NCPU");
		GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
		gbc_lblNewLabel.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel.gridx = 0;
		gbc_lblNewLabel.gridy = 1;
		panelPc.add(lblNewLabel, gbc_lblNewLabel);
		
		textField = new JTextField();
		GridBagConstraints gbc_textField = new GridBagConstraints();
		gbc_textField.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField.insets = new Insets(0, 0, 5, 0);
		gbc_textField.gridx = 2;
		gbc_textField.gridy = 1;
		panelPc.add(textField, gbc_textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("Frequency");
		GridBagConstraints gbc_lblNewLabel_1 = new GridBagConstraints();
		gbc_lblNewLabel_1.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_1.gridx = 0;
		gbc_lblNewLabel_1.gridy = 3;
		panelPc.add(lblNewLabel_1, gbc_lblNewLabel_1);
		
		textField_1 = new JTextField();
		GridBagConstraints gbc_textField_1 = new GridBagConstraints();
		gbc_textField_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_1.insets = new Insets(0, 0, 5, 0);
		gbc_textField_1.gridx = 2;
		gbc_textField_1.gridy = 3;
		panelPc.add(textField_1, gbc_textField_1);
		textField_1.setColumns(10);
		
		JLabel lblNewLabel_2 = new JLabel("Memory");
		GridBagConstraints gbc_lblNewLabel_2 = new GridBagConstraints();
		gbc_lblNewLabel_2.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_2.insets = new Insets(0, 0, 0, 5);
		gbc_lblNewLabel_2.gridx = 0;
		gbc_lblNewLabel_2.gridy = 5;
		panelPc.add(lblNewLabel_2, gbc_lblNewLabel_2);
		
		textField_2 = new JTextField();
		GridBagConstraints gbc_textField_2 = new GridBagConstraints();
		gbc_textField_2.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_2.gridx = 2;
		gbc_textField_2.gridy = 5;
		panelPc.add(textField_2, gbc_textField_2);
		textField_2.setColumns(10);
		
		panelPort = new JPanel();
		frmProva.getContentPane().add(panelPort);
		GridBagLayout gbl_panelPort = new GridBagLayout();
		gbl_panelPort.columnWidths = new int[]{54, 111, 106, 0};
		gbl_panelPort.rowHeights = new int[]{30, 20, 35, 20, 35, 20, 35, 20, 0};
		gbl_panelPort.columnWeights = new double[]{0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panelPort.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panelPort.setLayout(gbl_panelPort);
		
		JLabel lblNewLabel_3 = new JLabel("IP Address");
		GridBagConstraints gbc_lblNewLabel_3 = new GridBagConstraints();
		gbc_lblNewLabel_3.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_3.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_3.gridx = 0;
		gbc_lblNewLabel_3.gridy = 1;
		panelPort.add(lblNewLabel_3, gbc_lblNewLabel_3);
		
		textField_3 = new JTextField();
		GridBagConstraints gbc_textField_3 = new GridBagConstraints();
		gbc_textField_3.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_3.insets = new Insets(0, 0, 5, 0);
		gbc_textField_3.gridx = 2;
		gbc_textField_3.gridy = 1;
		panelPort.add(textField_3, gbc_textField_3);
		textField_3.setColumns(10);
		
		JLabel lblNewLabel_4 = new JLabel("task_port");
		GridBagConstraints gbc_lblNewLabel_4 = new GridBagConstraints();
		gbc_lblNewLabel_4.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_4.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_4.gridx = 0;
		gbc_lblNewLabel_4.gridy = 3;
		panelPort.add(lblNewLabel_4, gbc_lblNewLabel_4);
		
		textField_4 = new JTextField();
		GridBagConstraints gbc_textField_4 = new GridBagConstraints();
		gbc_textField_4.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_4.insets = new Insets(0, 0, 5, 0);
		gbc_textField_4.gridx = 2;
		gbc_textField_4.gridy = 3;
		panelPort.add(textField_4, gbc_textField_4);
		textField_4.setColumns(10);
		
		JLabel lblNewLabel_5 = new JLabel("event_port");
		GridBagConstraints gbc_lblNewLabel_5 = new GridBagConstraints();
		gbc_lblNewLabel_5.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_5.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_5.gridx = 0;
		gbc_lblNewLabel_5.gridy = 5;
		panelPort.add(lblNewLabel_5, gbc_lblNewLabel_5);
		
		textField_5 = new JTextField();
		GridBagConstraints gbc_textField_5 = new GridBagConstraints();
		gbc_textField_5.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_5.insets = new Insets(0, 0, 5, 0);
		gbc_textField_5.gridx = 2;
		gbc_textField_5.gridy = 5;
		panelPort.add(textField_5, gbc_textField_5);
		textField_5.setColumns(10);
		
		JLabel lblNewLabel_6 = new JLabel("fs_port");
		GridBagConstraints gbc_lblNewLabel_6 = new GridBagConstraints();
		gbc_lblNewLabel_6.anchor = GridBagConstraints.WEST;
		gbc_lblNewLabel_6.insets = new Insets(0, 0, 0, 5);
		gbc_lblNewLabel_6.gridx = 0;
		gbc_lblNewLabel_6.gridy = 7;
		panelPort.add(lblNewLabel_6, gbc_lblNewLabel_6);
		
		textField_6 = new JTextField();
		GridBagConstraints gbc_textField_6 = new GridBagConstraints();
		gbc_textField_6.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_6.gridx = 2;
		gbc_textField_6.gridy = 7;
		panelPort.add(textField_6, gbc_textField_6);
		textField_6.setColumns(10);
	}
	
	public JPanel getPanel(String p){
		JPanel panel = null;
		if(p.equalsIgnoreCase("panelPc")) panel = panelPc;
		if(p.equalsIgnoreCase("panelPort")) panel = panelPort;
		if(p.equalsIgnoreCase("panelQueue")) panel = panelQueue;
		if(p.equalsIgnoreCase("panelTask")) panel = panelTask;
		if(p.equalsIgnoreCase("panelEvent")) panel = panelEvent;
		return panel;
	}
}
